/**
 * @Author ZhangGJ
 * @Date 2022/03/10 07:26
 */
public class Test {
    public static void main(String[] args)
            throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Class<?> clazz = Class.forName("User");
        User user = (User) clazz.newInstance();
        user.setId(1);
        user.setName("Test");
        System.out.println(user);
    }
}
